package com.ruoyi.zhgd.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 实验室设备信息业务对象 n_laboratory_device
 *
 * @author zyb
 * @date 2023-09-12
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class NLaboratoryDeviceBo extends BaseEntity {

    /**
     * 主键
     */
    @NotBlank(message = "主键不能为空", groups = { EditGroup.class })
    private String id;

    /**
     * 基地编码
     */
    @NotBlank(message = "基地编码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String baseCode;

    /**
     * 实验室名称
     */
    @NotBlank(message = "实验室名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String laboratoryName;

    /**
     * 设备类型，关联sys_dic表code字段
     */
    @NotBlank(message = "设备类型，关联sys_dic表code字段不能为空", groups = { AddGroup.class, EditGroup.class })
    private String type;

    /**
     * 设备名称
     */
    @NotBlank(message = "设备名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 设备型号
     */
    @NotBlank(message = "设备型号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String model;

    /**
     * 设备编号
     */
    @NotBlank(message = "设备编号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String code;

    /**
     * 设备厂商
     */
    @NotBlank(message = "设备厂商不能为空", groups = { AddGroup.class, EditGroup.class })
    private String manufacturer;

    /**
     * 服务电话
     */
    @NotBlank(message = "服务电话不能为空", groups = { AddGroup.class, EditGroup.class })
    private String servicePhone;

    /**
     *
     */
    @NotNull(message = "不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long num;

    /**
     * 备注
     */
    @NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;

    /**
     * 添加人主键，关联sys_user主键
     */
    @NotNull(message = "添加人主键，关联sys_user主键不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long creator;

    /**
     * 添加时间
     */
    @NotNull(message = "添加时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date createDate;

    /**
     * 最后修改人主键，关联sys_user主键
     */
    @NotNull(message = "最后修改人主键，关联sys_user主键不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long updater;

    /**
     * 最后修改时间
     */
    @NotNull(message = "最后修改时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date updateDate;

    @NotNull(message = "是否接入1接入0未接入", groups = { AddGroup.class, EditGroup.class })
    private Integer isConnect;

    /**
     * 物联卡号
     */
    @NotNull(message = "物联卡号", groups = { AddGroup.class, EditGroup.class })
    private String cardNum;

}
